<?php
    class Home extends Base_Controller {
        public function index(){
//            $this->load->library('dt_auth/dt_auth');
//            //$d = new dt_auth();
//            
//            print_r($this->dt_auth->get_all_roles());
//           $data['var'] = "trongf";
//           $this->load->view('mvcview/view',$data);
            if($_POST){
               $this->load->model('home_model');
               $config = array(
                   array(
                       'field'=>'txt',
                       'label' => 'Text',
                       'rules' => 'required|xss_clean'
                   )
               );
               $this->home_model->set_rules_config($config);
               $v = $this->home_model->base_validate();
               //$this->load->module('contact');
               //$this->contact->func1();
            }
            
            
            
            $this->dt_layout->set_layout('mvcview/view');
            $this->dt_layout->set_data(array('var'=>'trong tran'));
            $this->dt_layout->add_scripts('asset/js/fix.js');
            $this->dt_layout->add_styles('asset/css/fix.css');
            $this->dt_layout->set_title('title');
            $this->dt_layout->render('home/view1');
        }   
    }
?>
